<div id="doctitle">
	<h2>Buffer Feature</h2>
</div>

<div id="doclocation">
	<a href="v1/ws_geo_bufferfeature.php">Service URL</a>
</div>

<div id="docdescription">
	<h3>Description</h3>
	<p>Buffer a feature in one layer and return buffered features of the 
	same or a different layer.</p>
</div>

<div id="docinput">
	<h3>Service Arguments</h3>
	<table id="doctable">
		<tbody>
			<tr>
				<th>PARAMETER</th>
				<th>DESCRIPTION</th>
			</tr>
			<tr>
				<td>from_geotable</td>
				<td>The geotable that has the feature(s) to buffer. Example: If you want
					to buffer a parcel by 500 feet, you would set tax_parcels as the 
					from_geotable.</td>
			</tr>
			<tr>
				<td>to_geotable</td>
				<td>The geotable that has the features you want selected by the buffered
					feature(s) of the from_geotable.</td>
			</tr>
			<tr>
				<td>fields</td>
				<td>Comma delimited list of fields to be returned. Fields from the to_geotable
					should be given the prefix 't', like t.precno, while fields from the
					from_geotable should have a prefix of 'f', like f.pid.</td>
			</tr>
			<tr>
				<td>parameters</td>
				<td>SQL where parameters. Parameters for the from_table
					must have a 'f' prefix, and parameters for the to_table must have a 't'
					prefix. Example: f.pid = '11111111'.</td>
			</tr>
			<tr>
				<td>distance</td>
				<td>The number of units to be buffered. The units are the units of the
					from_geotable SRID, and for Mecklenburg County data will be feet.</td>
			</tr>
			<tr>
				<td>format</td>
				<td>Format for the output. Value is either 'xml' for xml output, 'kml' for kml output, or
					'json' for JSON output.</td>
			</tr>
		</tbody>
	</table>
</div>

<div id="docoutput">
	<h3>Service Output</h3>
	<p>Service output is entirely dependant upon the fields parameter.</p>
</div>

<div id="docsample">
	<h3>Sample Output</h3>
	<p>Sample XML Output</p>
	<pre>
	&lt;rows total-rows="3"&gt;
	&lt;row&gt;
	&lt;column name="precno"&gt;203&lt;/column&gt;
	&lt;column name="pid"&gt;11111111&lt;/column&gt;
	&lt;/row&gt;
	&lt;row&gt;
	&lt;column name="precno"&gt;201&lt;/column&gt;
	&lt;column name="pid"&gt;11111111&lt;/column&gt;
	&lt;/row&gt;
	&lt;row&gt;
	&lt;column name="precno"&gt;219&lt;/column&gt;
	&lt;column name="pid"&gt;11111111&lt;/column&gt;
	&lt;/row&gt;
	&lt;/rows&gt;
	</pre>
	
	<p>Sample JSON Output</p>
	<pre>
	{"total_rows":"3","rows":[{"row":{"precno":"203","pid":"11111111"}},
	{"row":{"precno":"201","pid":"11111111"}},
	{"row":{"precno":"219","pid":"11111111"}}]}
	</pre>
	
	<p>Sample KML Output</p>
	<pre>
    &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;kml xmlns="http://www.opengis.net/kml/2.2"&gt;
      &lt;Document&gt;
        &lt;Placemark&gt;
          &lt;name&gt;Monroe Middle School&lt;/name&gt;
          &lt;Point&gt;
            &lt;coordinates&gt;-80.538976082676783,34.973003351596738&lt;/coordinates&gt;
          &lt;/Point&gt;
          &lt;ExtendedData&gt;
            &lt;Data name="name"&gt;
              &lt;value&gt;Monroe Middle School&lt;/value&gt;
            &lt;/Data&gt;
          &lt;/ExtendedData&gt;
        &lt;/Placemark&gt;
      &lt;/Document&gt;
    &lt;/kml&gt;
	</pre>
</div>